const Koa = require('koa')
const app = new Koa()
const DurationresponseMiddleware = require('./middleware/koa_response_duration')
app.use(DurationresponseMiddleware)
const HeaderresponseMiddleware =require('./middleware/koa_response_header')
app.use(HeaderresponseMiddleware)
const DataresponseMiddleware = require('./middleware/koa_response_data')
app.use(DataresponseMiddleware)
app.listen(8888)

const websocketservice = require('./service/websocket_service')//引入模块监听listen函数
websocketservice.listen()